package com.doctcloud.datacloud.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

import static com.doctcloud.common.core.utils.StringUtils.trim;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode(of = {"patientId"})
@TableName("pat_master_index")
public class PatMasterIndexEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    private String patientId;
    private String name;
    private String sex;
    private String identity;
    private String chargeType;
    private Date updateDate;
    private Integer visitId;
    public void setName(String name) {
        this.name = name==null?"[缺失]":trim(name);
    }
}
